#!/bin/sh
#-----------HEADER------------------------------------------------------------#
#AUTOR
#  Jefferson Rocha <lrcjefferson@gmail.com>
#
#PROGRAM
#  IP
#
#DESCRIPTION
#  Print external ip on the screen with use curl
#-----------------------------------------------------------------------------#

_ip(){
#------VARS------------#
local red="\033[31;1m"
local cyan="\033[36;1m"
local end="\033[m"
#----------------------#

#-----TEST-------------#    
[ $(type -P curl) ] || { echo "Need Curl for continue, exit now..." ; exit 1 ;}  # Curl está no sistema?
#----------------------#

echo -e "\nWait..."
local exec_=$(curl -s ifconfig.me)
echo -e "\n${red}Seu IP Externo é:${cyan} ${exec_}${end}\n"
}
